package com.ly.heart.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ly.common.utils.DateUtils;
import com.ly.heart.mapper.KingCheckMaterialDetailMapper;
import com.ly.heart.service.IKingCheckMaterialDetailService;
import org.springframework.stereotype.Service;
import com.ly.heart.domain.KingCheckMaterialDetailEntity;

import javax.annotation.Resource;

/**
 * 金蝶-检验单检验结果Service业务层处理
 *
 * @author cxl
 * @date 2024-08-11
 */
@Service
public class KingCheckMaterialDetailServiceImpl extends ServiceImpl<KingCheckMaterialDetailMapper,KingCheckMaterialDetailEntity> implements IKingCheckMaterialDetailService {

    @Resource
    private KingCheckMaterialDetailMapper kingCheckMaterialDetailMapper;

    /**
     * 查询金蝶-检验单检验结果
     *
     * @param id 金蝶-检验单检验结果ID
     * @return 金蝶-检验单检验结果
     */
    @Override
    public KingCheckMaterialDetailEntity selectKingCheckMaterialDetailEntityById(String id)
    {
        return kingCheckMaterialDetailMapper.selectKingCheckMaterialDetailEntityById(id);
    }

    /**
     * 查询金蝶-检验单检验结果列表
     *
     * @param kingCheckMaterialDetailEntity 金蝶-检验单检验结果
     * @return 金蝶-检验单检验结果
     */
    @Override
    public List<KingCheckMaterialDetailEntity> selectKingCheckMaterialDetailEntityList(KingCheckMaterialDetailEntity kingCheckMaterialDetailEntity)
    {
        return kingCheckMaterialDetailMapper.selectKingCheckMaterialDetailEntityList(kingCheckMaterialDetailEntity);
    }

    /**
     * 新增金蝶-检验单检验结果
     *
     * @param kingCheckMaterialDetailEntity 金蝶-检验单检验结果
     * @return 结果
     */
    @Override
    public int insertKingCheckMaterialDetailEntity(KingCheckMaterialDetailEntity kingCheckMaterialDetailEntity)
    {
        kingCheckMaterialDetailEntity.setCreateTime(DateUtils.getNowDate());
        return kingCheckMaterialDetailMapper.insertKingCheckMaterialDetailEntity(kingCheckMaterialDetailEntity);
    }

    /**
     * 修改金蝶-检验单检验结果
     *
     * @param kingCheckMaterialDetailEntity 金蝶-检验单检验结果
     * @return 结果
     */
    @Override
    public int updateKingCheckMaterialDetailEntity(KingCheckMaterialDetailEntity kingCheckMaterialDetailEntity)
    {
        return kingCheckMaterialDetailMapper.updateKingCheckMaterialDetailEntity(kingCheckMaterialDetailEntity);
    }

    /**
     * 批量删除金蝶-检验单检验结果
     *
     * @param ids 需要删除的金蝶-检验单检验结果ID
     * @return 结果
     */
    @Override
    public int deleteKingCheckMaterialDetailEntityByIds(String[] ids)
    {
        return kingCheckMaterialDetailMapper.deleteKingCheckMaterialDetailEntityByIds(ids);
    }

    /**
     * 删除金蝶-检验单检验结果信息
     *
     * @param id 金蝶-检验单检验结果ID
     * @return 结果
     */
    @Override
    public int deleteKingCheckMaterialDetailEntityById(String id)
    {
        return kingCheckMaterialDetailMapper.deleteKingCheckMaterialDetailEntityById(id);
    }
}
